#include<iostream>
#include<stdlib.h>
using std::cin;
using std::cout;
using std::endl;
class Date
{
public:
	Date(int year = 0, int month = 0, int day = 0);

	void Print();
	Date& operator+=(int day);
	Date& operator-=(int day);
	Date operator+(int day);
	Date operator-(int day);
	Date&operator++();
	Date operator++(int);
	Date operator--(int);
	Date& operator--();
	bool operator>(const Date& d);
	bool operator<(const Date& d);
	bool operator==(const Date& d);
	bool operator>=(const Date &d);
	bool operator<=(const Date &d);
	bool operator!=(const Date &d);
	int operator-(const Date&d);
private:
	int _year;
	int _month;
	int _day;
};
